#ifndef _TRIANGLE_H
#define _TRIANGLE_H

#include "Point.h"

class Triangle{
	private:
		Point *p0;
		Point *p1;
		Point *p2;
		vector3 normal;

	public:
		Triangle(Point *p0, Point *p1, Point *p2, vector3 initNorm):normal(initNorm){
			this->p0 = p0;
			this->p1 = p1;
			this->p2 = p2;

			p0->addTriangle(this);
			p1->addTriangle(this);
			p2->addTriangle(this);
		}

		vector3 getNormal(){
			return normal;
		}

		void draw();
};

#endif